Fix CMakeLists.txt for linking under *NIX.