Changes to make rest.rb run on Windows