Remove stray define and fix scanf usage of va_list.

The calls to scanf were calling the non-va_list versions with a va_list.
Add the _GNU_DEFINE via autoconf.