Fixed bug with loading freeimage library.