fixes #7 - PHP < 5.3.9 compatibility