Safely allow calling of certain GDraw routines when running headless.
Fix bad names.
Merge pull request #1378 from fontforge/littlethings

Safely handle some GDraw calls in headless mode.