libcore: Some more fixes to Windows libc stuff. rs=bustage