Switch over to a cmake version of netcdf, it finds hdf5 more often.