settings: add ShowMenubar advanced setting to hide the menu bar by default (does not persist changes made with F9)
fix memory leaks
follow-up to r8434