Fix Lib for Debian and Clean encode.c