Added support for getsockopt and setsockopt (only int options for now).