waf: DRY up sources generation
waf: use -std=gnu99 and remove hack for mingw32