Detecting coevolving positions in a molecule: why and how to account for phylogeny