allow the library to be used in C++ applications.

I don't know if I could have done this external to modifying libscrypt.h