Revamped peek/poke functions because GCC generated unoptimized code for these.
Moved UINT32_SWAP() macro from common.h to lib/endian.h.