I found a lot of different converters and got a few different results. I will explain now the easiest way to get your avi file. First you need to install mencoder. This is a command line utility available for windows and linux. Then enter following command:
Linux:
mencoder yourMkvMovie.mkv -oac mp3lame --xvidencopts pass=1 -o yourMovie.avi
Windows:
"C:\Program Files\mplayer\mencoder.exe" "c:\sample.mkv" -oac mp3lame -ovc xvid -xvidencopts pass=1 -o "c:\sample.avi"
The Parameters:
-oac mp3lame: Says how the audio should be encoded. In this case we use mp3
-ovc xvid: Says how the video should be encoded. In this case we use xvid (avi)
-xvidencopts pass=1: We use the one pass encoding. Here you can also specify how much threads mencoder can spawn. For more information take a look at the man page.