Properly check for Windows in resolv.rb. Fixes #580.