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

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