fix swift build scripts
fix win32 building script