Fix compiling with FreeType 2.5.1

Save as c6040f618 but for the 1.x branch.