Internal combustion engine for gas making