linking pthread library explicitly to ensure GTest works