Deal with some warnings

Could you add a #ifdef _MSC_VER around? Generates warning
window_message.cpp:47:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
 #pragma warning (disable : 4428)
under gcc