[COMMIT W3] Avoid calling menu-specific code at compile time if no menubar, W3.