Added configure check for libsodium
Fixed packaging for Windows - was missing errno sources
Use correct libsodium call for detection
Merge pull request #553 from hintjens/master

Some changes to building and packaging