Make ORM compatible with Mako 3.1.0