fixed cmakelists bug with linker error