Support compilation with JDK 21
The use of java-common's $java_compat_level is proposed to adjust the -source and -target values to suit the java version being used to build. Also, because the minimum such level will throw deprecation warnings, we need -Xlint:-options if using -Werror.