Fixed a few VS warnings
Wrapped math in int constructor
Header changes so it will compile on VS
Various MXE build fixes
Added genfiles.zip to MXE "make dist"