examples/ka-agent: convert to pkg-config-based build