Compatibility with SQLAlchemy 0.9.