Use pack if hex2bin does not exist (pre php-5.4)