curve: initialize crypto libs before usage

libsodium: sodium_init() was missing
tweetnacl: randombytes opens /dev/urandom on first usage