Fix ifort 13 bug with constants module.

Switch from constants module back to constants header in MPI code. It
seems that ifort 13 has a bug when parsing this file with so many uses
of the constants module. ifort 12 and ifort 14 do not exhibit this bug.
Also silence unused variables in serial code.