added XLC guard for cmath include workaround
endian encoding bug, dmick