Compact optical scheme for the generation of ultrafast mid-IR laser pulses