Some cosmetic and more documenting.
Initial work on enabling cross-compiling.
Use Windows' types on Windows builds. Make better use of pointer types.

Sort of enable Windows' builds. Currently, MingW32 is bugged for building 32 bits builds.