make classes compatible with Kohana 3.3