zcurve: fix unused variable errors

Fix serveral places where zcurve build would fail because
of unused variables if libsodium not enabled.
zsockopt: fix prototype mismatch

Build fails if GCC -Werror because prototypes don't match function
definition.
Merge pull request #179 from shemminger/v1.4.x-fixes

V1.4.x fixes