encode.c was written by brake, see here: http://chdk.setepontos.com/index.php/topic,2361.msg22123.html#msg22123

Compiled OK for me under Win32 with the free Borland C++ 5.5 commandline compiler;
just ignore the warnings.
Also reported to compile under GCC, and under Visual C++ from Visual Studio 2005, which makes it
a lot smaller than the Borland version (after UPX --ultra-brute: ~6K versus ~27K !) I'm enclosing
this small executale - compiled by ma_jk, thanks !

