Use compat level macro to resolve Java 21 FTFBS
java-common provides a new Makefile varaible java-compat-level that specifies the minimum supported language level. Use it instead of the hardcoded 1.7 value in the makefile.
Testing:
- rebuild in sid chroot with default Java 21 succeeds after the patch.