Build a shared object.