REXLIB: add CMake file.
REXLIB: fix prototypes.