Added configure check for libsodium
Fixed some typedef inconsistency
Using sodium_init() for library check
Merge pull request #152 from hintjens/master

Added libsodium hook