fix qt library name, test for platform
use OutputDebugString that expects a const char*

See:
http://stackoverflow.com/questions/1333527/how-do-i-print-to-the-debug-output-window-in-a-win32-app
fix dynamic loader Windows, CMake and Autotools