php 5.3 compatibility

This PR makes the bundle compatible with php 5.3
The only exception is the Behat context class. Maybe a separate context class should be added.