Use (void*)NULL instead of NULL in varargs.
Add missing definition of _C99_SOURCE