Predecessors of the steam engine