Updated CPU_TO_LE32 to work on darwin