waf: add ISOC99_SOURCE and GNU_SOURCE defines