Add support for "-pthread" switch on upc2c command line. TLD macros
are generated only if this switch is present.