[lime] Add proper dependencies and patch cmake files