remove _GNU_SOURCE definition and irrelevant comments