removed _GNU_SOURCE macro
removed all if 0