kamcmd: use pkg-config to get compile flags for lib readline