Added functions to retrieve WinMsgBuf size and contents
Added tests for WinMsgBuf expansion
Added memory allocation ASSERT_* macros and mallocmock.c

The latter is automatically linked with each test. These macros are available
only with gcc and allow asserting on memory allocation attempts.
Added memory allocation assertions to existing winbuf tests