cmake, main window and server command line parsing updates