Increased minimum required CMake's version to 2.8.
Fixed window title handing in samples.