Add in new file build_gitwork.sh to factor out a bunch of common functionality

Make win-extras target before dist on windows