Add -pthread flag for C and CPP (1/2)