fixing compilation errors for TestJavascript on windows.