Make LCMS dependency optional.