Fix ufo.c compilation on Windows and in Python-free environments.

This addresses #1463.