ZF 1.12.8 compatibility fixes.