window visible on the screen

at ~200 lines on main.cc and ~1800 in plex's stdafx we can finally see
output on the screen.