Convert from K&R to something more C-ish.

Set maximum size of literal using a define instead of hardcoding as 10 all over the code.

Use isspace() and isdigit() whenever it was possible.
Enable build of libaval with newer GCC (replace obsolete vaargs with stdarg.h).