Compiler warnings cleanup

Refactored all code so that compiles under all flavors of gcc compiler
issue no (or almost no) warnings.

Fixed undexta to handle input file names with extension correctly.

Fixed a benign buffer overflow in QV.c