fix compiling with SO_BPF_EXTENSIONS

Add a missing parenthesis and use socklen_t for the getsockopt()
argument to address a pointer type warning.