WIP: fix compilation problem for GPU on windows.