Manually merging pull request https://github.com/Unidata/netcdf-c/pull/74 contributed by Nico Schlömer