FLILIB: add CMake file.
FLILIB: fix prototypes and unused variables.
FLILIB: fix sign/unsigned mismatches and casts.
FLILIB: fix size of memory to clear.