update FreeImage to support mac os.