fix building scripts for windows