Added custom version of write_basic_package_version_file to avoid dependency on CMake > 2.8.7 (Ubuntu 12.04), logic now requires major.minor to match