Remove dependency on PHP's ext/calendar extension, and use our own