core: Prepare gc.c for mescc, non-POSIX_SOURCE.