an clone of the official Wurfl PHP library updated for PHP 5.3