Fix focusing main window when closing documentation
Add quit/close menu items to file menus on non-Mac platforms