[Java] Re-introduce glibc versioning checks, but only up to 2.34