Fixed build issue with CMake 2.8.12