Windows build fix + cuda_host/cuda_device parsing code