Ensure that netcdf-cxx uses the Spack-installed hdf5 and netcdf4 rather than system-installed versions.