install already depends on release in gmake.mk/bmake.mk; the manual
pre-build in the wrapper scripts was redundant and, combined with a
clean target in the same invocation, didn't actually prevent clean
from wiping the build before install ran.
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.
Also fixes frame_budget_ns being left unset when vsync paces
presentation without an explicit sleep (present_fn == present), and
exposes it as skele_frame_budget_ms for reporting alongside the
sleep-based capped path.
Tracks actual tick work duration and idle/sleep time separately from
tick rate, via zero-arg begin/end pairs (skele_clock_tick_begin/end,
skele_clock_idle_begin/end) rather than passed timestamps, since the
prior interval-between-calls approach just measured the fixed tick
period, not real processing cost.
Present now dispatches through a function pointer chosen at init and
re-chosen by two new runtime setters: real vsync if requested and the
driver grants it, else a manual sleep-based cap (auto-detects display
refresh rate, falls back to 60fps if that can't be queried), else
fully uncapped. skele_video_using_vsync() reports what was actually
granted; skele_video_set_vsync()/skele_video_set_max_fps() let a game
change either live without tearing down the renderer/GL context.