build: configure time check for CURVE support in libzmq

Use AC_RUN_IFELSE with zmq_curve_keypair() to detect at configure
time if the libzmq we're building against is compiled with
security (libsodium).

Fixes #7