Various MinGW compile fixes.

Fixes for MinGW and Win64.

Some things to remember:
* All system headers are generally lowercase.
* All system libraries are generally lowercase.
* Slashes in paths go forwards, not backwards.