Updated some of our CMake files so that OpenCOR can be properly built on Linux and OS X using Qt 5.1.