coverity fixes to module netcdf4