Issue #17557: Fix os.getgroups() to work with the modified behavior of
getgroups(2) on OS X 10.8.  Original patch by Mateusz Lenik.
Issue #18325: Fix a test_kqueue failure on OpenBSD: kevent's data and event
members are integers.