fix compile-extensions.rb for Windows