Fix for windows build

Variable used in Java handshaking defined multiple times for Windows builds.