CMake: Remove some redundant libs and link on same line for both OS.