Fix skeleton builds for HDF5 and NetCDF