improved windows compilation script