build system: Improve support for FreeImage
build system: Improve support for FreeType
joy-frontend: Improve build system