Add GCC threads option.