Corrected library names for MacOS in cmake tests.