Fix compile for endian calls on old host GCC

Change-Id: I27e18a424ba4bad7dbd33cd17a5c23c65269f51a
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11958
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>