new rev of GCC requires -pthread to compile.  This isn't as clean a
solution as it could be since all code is being compiled with -pthread,
rather than just the threaded apps.