Compiling Client into shared library