Changed _GNU_SOURCE to POSIX_C_SOURCE=200809L