fixed some windows issues

Must be run in a 32bit JVM on windows