Fix build scripts for win32