Re-jig the MEMALLOC macros to make them readable and semi-colon safe. Add an _WIN32 branch to the definitions to try to locate the heap corruption occuring on windows.