unit: add missing endian ifdefs to test-gril*

Minor fixup of the endian checking ifdef code and ws formatting to sync up with the archive version of ofono:

lp:~phablet-team/ofono/ubuntu

No functional changes.