R: fix building on windows.