Accept multiple entries for INCLUDE_DIRS and LIBRARIES when detecting FreeImage.