MinGW fixes and warning reduction
Merge pull request #5 from thatcadguy/master

MinGW fixes and warning reduction