Make compatible with php 5.3

Removes some neat features, unfortunately, but makes it more compatible with older sites that can't safely update to PHP 5.4 yet.