remove duplicated CFLAG, improved CC variable assignment