packaging: Enable LTO and set visibility to hidden