Add zmq_getsockopt return to MATLAB

TODO:
- test it well
- discover the proper length of the native `int` type in compilation
time
- document it properly
- remove auxiliar functions to separeted files (in order to be reused)