mac API modifications, pbkdf2 fixes and performance