R: more build fixes for windows.