For the Mac, libraries need to be loaded in CMakeLists