I guess, also statefs-cpp pkgconfig should be added here and linking below. Add also shared library linking test to tests/ dir, there are examples there.