force unicode support in java-io.cpp when including windows.h
fix linux->darwin cross-compile

There were two issues: the linux->darwin cross compiler is more stringent
about unused variables, and the makefile specified flags for building ON
darwin that were actually applicable whenever we are building FOR darwin.