key-compare: fix compilation warnings

-Wunused-parameter and -Wswitch-default will trigger warnings.
change code to avoid them.
build: use gl_WARN_ADD for compiler warnings
build: touch missing files