put GNU_SOURCE before include of stdio.h