patches to setup script to compile on windows