cmake: detect _GNU_SOURCE not by __GNU_LIBRARY__ only (fallback to _GNU_SOURCE) Fixes pipe2() on Android-9/armv7-a Refs: #475