Fix so v1.0.* can work with PHP5.4