Added build of agent as a shared library.
Remember to build everything.