Compact objects in globular clusters