adding libsodium 0.2 support