Adds socket option setters

Adds the required constant in libnanomsg.
Adds the socket option setters in main lib.
Changes the parameter type of set_survey_deadline to &Duration.