host: First cut at portability issues with endianess macros.

This changeset includes changes suggested by maggo1404 in the
following pull request.

https://github.com/Nuand/bladeRF/pull/52

These suggestions were reworked a bit to avoid having #ifdef
blocks throughout the codebase and to alleviate the need to copy items
between utilitie and library code.