Correct linking to the linux threading library.

Change-Id: Id59cb20553630d1e1a6ad551c9a994af9256de1b
Merge branch 'linux_missing_thread_lib'

Change-Id: Ib1de2755a1f59e29b951031ee3bb6b24dde71275