Globular clusters and the distance to M87