cgi: add _GNU_SOURCE define to fix build error on musl