Replaced PBKDF2_HMAC with PBKDF2_HMAC_SHA1 for OSX compat.