clean+install in one invocation wiped the release build before install
ran. install now has a real release prerequisite so make's own
dependency graph handles rebuilds regardless of target order; the
redundant manual pre-build in build.sh/build.bat is removed.
Neither doas nor sudo exist there and id -u never reports root,
so install/uninstall always hit the no-root error. IS_WIN is now
computed once alongside MK_FILE and reused for the priv check.
Detect MINGW/MSYS/UCRT/CLANG/CYGWIN uname prefixes in build.sh and
gmake.mk. Separates building for Windows from running under cmd.exe,
so MSYS2 uses mkdir -p/rm -rf instead of falling through to the
Linux .so/-ldl path.