Copy of source for ruby-netcdf gem, with tweak for MRI 2.0.0