fix build script to work on Windows