Changes regarding -Wall warnings

Pervious commit solved 'input() defined but not used' by adding gcc -D flag, which does not seem to be correct place for solving this.  Now flex option is used to avoid that warning.
Also use flex option to avoid 'unput() defined but not used'
Move relevant code 'print_keywords.h'->'settings.h'