Fixed X86_64 build with Java