build system: pass CFLAGS to link stage too (closes bug 1376)

2 files changed