Fixed the paths for libraries to get selected dynamically depending on the Architecture in CMakeLists.txt and compile.sh