modifications to allow cross-compilation to win32
Merge pull request #1 from duthils/cross-compil

modifications to allow cross-compilation to win32