As Anna said, the last official tool that works for me with WinXP SP3 32-bit, is mingw-mame-w32-20110519.exe; GCC 4.4.7.

The only problems I have with the current source plus messui 0.146u5 source from is some #pragma GCC diagnostic errors for unknown objects.
Comment out the pragmas and r17490 built to completion.