use CMK_HAS_GETHOSTNAME to protect code which can not be compiled on bluegene.