Moved some VC++ specific hacks to platform header.
Added missing suffix for WNDCLASSW.
Fixes for legacy MinGW 4.2.