Fixes to make MAMEHub compile on windows.