Use debug version of FreeImage lib.