fix warnings under win.
Merge pull request #666 from cuda-geek:warnings
compilation for osx
Merge pull request #668 from AoD314:webp2
Merge pull request #670 from Nerei:osx_compilation