configure: Rework FreeType check