FONTLIB: add CMake file.
FONTLIB: fix prototypes and unused variables.
FONTLIB: fix signed/unsigned mismatches and casts.
FONTLIB: replace blit_for_mode function pointer table with a function.