When using POSIXly functions, we need to define _POSIX_C_SOURCE, at least when the source is compiled with ANSI settings.