Fix compilation of the GPU back-end on windows.

close gh-1546
Merge pull request #1599 from nouiz/win_gpu

Fix compilation of the GPU back-end on windows.