Change manager to dynamic library.

Change manager to dynamic library.