Fix build scripts

Fixes Windows builders.