u/file: use GetTempPath on older Windows SDK versions
versions of the Windows SDK older than Windows 11 22000 do not
support GetTempPath2. furthermore, if Unicode support is not
enabled, use the ANSI versions of the functions.
amended to fix formatting
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2505>