Add cygwin detection, better windows support

Part 1 of 2 for https://github.com/opscode/ffi-yajl/issues/10