gnulib: enable a --build setup for sim [PR sim/30882]

The sim tree has some build-time programs for generating source files
that are a bit complicated and expect a POSIX-compatible system.  Use
the existing gnulib project to provide missing APIs.
4 files changed