remove obsolete _GNU_SOURCE pragma and make line numbering optional