Fix compilation error without _GNU_SOURCE.