"Fixing" weird clicking bug where hWnd was...

...incremented by one each click
Better compiling handling