Convert library to use PHP 5.3 namespaces