Fixed Win32 compatibility

Hi, I had problems with building your package on Windows. I managed that problems on that repo are similar to @tmcdonell cuda repository. I have applied same changes as at cuda package and it made it works.