Added check to ensure that the available libsodium library is compatible

Tox now uses some crypto_pwhash functions that are only available in the
newer libsodium releases; check this in configure to prevent compile
time errors.