Switch to the static version of pthread lib.