Define _GNU_SOURCE only if not already defined