White dwarfs and neutron stars in globular cluster X-ray sources