Kaon production in heavy ion collisions and the nuclear equation of state