Updated library to use PHP 5.3