Fixes for compiler warnings
Update required CMake version to 2.8
Merge pull request #1497 from seanpaultaylor/next

Next