BUG: Fixed building on windows

Java handshaking fix duplicated variable definition in windows builds.
Merge pull request #18 from mabruce/windows-fix

Removes duplicate variable declaration in the Write method on Windows.