added some temporary patches to rebuild libreoffice correctly