Build script adopted for AppVeyor