Add le32toh macro & friends to platform that lack it, like Windows.

Macros are preferable, because Linux internally uses macros, and
attempting to use a function messes with that.

(cherry picked from commit 3f2510803e6751893e5b4be982d6e8eee42894c3)