Use _GNU_SOURCE.
Add tests to package.
Pypy support passes tests.