Fixing pthread flags.