Added -fPIC flag to CMakeLists.txt