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