Fixes to enable base to be compiled with -fasm on Windows: - a few stdcall/ccall mismatches - use GetTempPathA instead of GetTempPath (a couple of these)