This patchset is intended for Debian and has not been tested on other systems, however the patch libreoffice-trinity.diff should apply cleanly to a stock LibreOffice source tree and function properly if enabled. After patch application, you will need to rerun autoconf from within the libreoffice-build directory in order to apply the changes made to configure.in