Turn off threading support if glibc++ is single threaded. Enable threading support on HPUX for gcc >= 3.3.