Fixed some warnings under CMake 3.0.0
Merge pull request #425 from bilke/cmake-3-warning-fixes

Fixed some warnings under CMake 3.0.0