build: check for -pthread vs -pthreads
string: make sure va_list is available.
macros: check for new enough GCC for some macros.