Fix building with windows x64 compiler

Fixed sizet conversion with a define and fixed some warnings.
Wings seems to run fine with 64b version now.
Gcc builds with 64b but seq faults at startup.