change Nanomsg API to pass Nanosock and not int. Update test to compile