[travis] install netcdf and hdf5 headers