Fix substitution of CFLAGS in make rules