fix compilation of main window example