Supporting more compilers, fine-tuned exception catching, quoted some cmake variables to prevent problems, and improved version management using cmake.