Always check for pthread library