cmake: ensure we globally match on _GNU_SOURCE