Updated various CMake files so that QtXmlPatterns gets properly referenced on OS X.