Move CFLAGS handling to common.mak.