Added missing pthread lib to cmake test script