Egypt to ink IMF deal before elections