some windows compatibility tweaks (unfinished)