Fix for compilation on Windows x64 by mingw64.
Fix for ruby 2.0.0 to make binary gems.