more warning removal with _POSIX_C_SOURCE set to 200112L