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.