Fix build to pass tests on appveyor-ci