Fixed CMP0048 properly.
Fixed CMP0026 properly. Requires cmake 2.8.8+