This pull requests fixes building on SmartOS and possibly other Solaris-like systems

After these two changes, libzmq compiles with libsodium on SmartOS, with all tests passing.