Fix build for appveyor