Changes to CCFLAGS & fix missing CCFLAG value & threadsanatize