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.
Instead of a transmute, you could do a double cast: `&c_linger as *const _ as *const c_void`. I'd like to be pretty cautious about having too many transmutes.