Revert "added some temporary patches to rebuild libreoffice correctly"

This reverts commit bbd7096d9b623e218022308b0f6d2b77297243bd.