Correct missing pthread linking on linux.
Merge branch 'pthread_link_error'