Fixed build script for Windows