fixed MenuBar layout issue when compiled with cmake