[tilegx] recognize tilegx target.
[tilegx] guard the _GNU_SOURCE with ifndef