Remove CheckPrototypeDefinition from CMake scripts (not supported on 2.6)