From the first stars to the first black holes