Update build script to work with AppVeyor.