Fix build with `NO_STDIO_FILESYSTEM` and improve checks for `XGETENV`
Before creating any new configure files (.conf) read the CONF_FILES_README.md