Implement detection of special options needed to compile pthread.h.

Also improve compiler_id reporting, remove some no-longer-necessary
instance variables from Metadata, make sure not to create duplicate
modes in Metadata.select_c_standard, and fix some typo-bugs in
compilers.ini.