Change CMake to properly locate required libraries