Fix netCDF support using gnu tools