Win32 compiler flags

The first commit fixes compilation of several emulator cores with c++ files.

The second commit enables the emulator cores to be compiled under a MINGW32 environment under windows. Tested under MinGW32 under Windows 7 x64.