Removed DLL requirement from library, refactored library layout.

This is the removal of DLL.