windows: make some functions static
code style fixes, mostly windows
Merge branch 'master' into isrc_raw