fixes for ruby 2.1.3

fixes for windows, plus fixes for solaris
Merge pull request #304 from opscode/lcg/ruby-2.1.3-windows

Lcg/ruby 2.1.3 windows