WIP: Switch to -pthread instead of -pthreads

Searching suggests that these are basically interchangeable, but -pthreads
doesn't appear to work on gcc 4.8 (why?)