fix warnings under win.
Merge pull request #666 from cuda-geek:warnings