enhanced version of build scripts for windows