Use PLATFORM set in appveyor.yml to determine build configuration

I think this will saw the build problems that came up after the run_with_env change was merged.