fixed -fPIC flag on wrong place in cmakefile