Fixed Cmake for linker errors