Add hex2bin function support for PHP 5.3