Added yields parameter

Added yields parameter to specify number sched_yield() call before
calling getsockopt(). Moved to BSD3 license.