fixed CMake issues that prevented compiling on 12.04