app_java: detect JAVA_HOME and use proper libgcj versioning
pkg/kamailio/deb: set JAVA_HOME and use libgcj12-dev instead of gcj-jdk