Updated CMakeLists to link libraries required for linux.