Fix several LibreOffice UI-related issues