feature/warnings

Another set of warnings fixing. It is now possible to build flex in GCC 4.8 with "-Wall -Wextra -Werror" options.

Note: last commit requires rebuilding flex, and using new binary to regenerate scan.c