Fix compiling with FreeType 2.5.1

Same as c6040f618 but for the 1.x branch.