Add multithread flag to gcc