[Issue 10391] Add proper compiler/linker flag for threading support on HP-UX