Handle exec-sync failure on Windows.
Tell Appveyor to build in release mode.