Make ZF 2.2+ compatible