Fix warnings thrown when changing _POSIX_C_SOURCE