build.rb: windows build fixes