Link with pthread on Linux