Add cube and earthdistance extensions