Extensive modification have been done to support building with
external dependencies. The biggest change is a new CMake-based
build system.
Several patches are based on the equivalent ones used in Debian
packaging, see http://sources.debian.net/patches/freeimage .
The only dependency for which the internal version is still used is
OpenEXR.