Sweet it built and runs!!! You're in trouble now... 
just a note that the last 101 releases (every release) have been compiled with mingw. i do not use msvc, it was being looked at in feb of this year thinking it would help with using audacity libraries for drawing the mp3 waveforms.
Dave pitts has gotten xlights 4.0 to be able to draw waveforms, zoom in and out on them, he uses the AUI feature of codeblocks (look for a youtube video describing it). AUI allows floatable, dockable windows. xl 4 has ability to move everything around and create your own look and feel.
I have not seen the source for xl 4 as dave has kept it local to his machine. he plans on checking the code in sometime this month then we can all try the ui.
all of this dave did in mingw.