Also adds a few file global options to keep the generated code similar to what we already had.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4620