Fix to work with LO 4.4

LO 4.4 drops ProductMajor from versionrc, so rework by merging the shim
code for liblibreoffice and LibreOfficeKit and pick which to use based
on the presence of the symbol which each exports.