define _GNU_SOURCE to silence warning about missing strncasestr prototype