Add support for linking against IBM JVMs (squashed)