Update build scripts to use latest settings and modules.
Better error reporting on netcdf calls.