fixed compilation on Linux. freeimage still needs to be added to configure.in