You are correct `_GNU_SOURCE` must be defined, but as other `#include`s could include `string.h` [it is recommended](http://stackoverflow.com/questions/9935642/how-do-i-use-strcasestr) to defined `_GNU_SOURCE` at the top of the file, before any includes.

Anyways, I fixed this with this merge...