Improved our building process with Xcode. Also revised our testing strategy when it comes to CMake. [ci skip]

Regarding our testing strategy, it works fine on OS X, but it now need
to be tested (and, most likely, fixed) on Windows and Linux.