Fix compilation of the GPU back-end on windows.

close gh-1546