proto-shell: add _GNU_SOURCE define to get O_DIRECTORY