Place ifdef guards around more esoteric MPI_CXX types in get_var_datatype_std.cpp.

Reported by Jens Pomoell.