Make configure_file work with CMake 2.6. Thanks to Ulmer Wolfgang for the patch.