Adding script to clean repo, improve WIN32 support