Various patch from Buildroot

Hi,

enca is available in buildroot (http://buildroot.org/) and we had to make a few patches in order to build enca in a cross compilation setup.

Here are theses patches, they are mostly fix in order to have a clean cross compile build possible.