hash_pbkd2 compatability for php 5.4