Make stuff compatible with php 5.3.... sigh