fix things when WITH_JVM and WITH_ILP is defined