ZMQ::Socket#getsockopt: add support for LAST_ENDPOINT and MULTICAST_HOPS

This only adds the behavior only if libzmq3 is used (not version 2).