Fix for some combinations of MPI/netCDF
Thanks to Dmitry N. Mikushin