Merge pull request #683 from hintjens/master

Updated libzmq CURVE to track RFC 27
Call flush after writing the identity message
Merge pull request #684 from hurtonm/master

Call flush after writing the identity message
Build/test errors on OS/X with clang++