fontforge: fix compilation errors on 10.8.2

Closes #18206.
Closes #18046.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>