Rather than _DARWIN_C_SOURCE, use _C99_SOURCE. It is C99, after all.

Like _DARWIN_C_SOURCE, this eliminates the warning with clang 4.2 & OSX
about snprintf not being defined, but is specific to the C standard
rather than to an OS.