keygen fixes

Better detection of missing security support in libzmq.
Adds checks in both ./configure and at runtime during keygen for missing security support in libzmq.
(So we don't silently generate zeroed keys)