only define _POSIX_C_SOURCE and _BSD_SOURCE if they are not already defined, to avoid conflicts when also including stdlib.h
include stdarg.h in log.h, so that users of the library don't have to include it