Merge "Revert "Build and use minadbd as a shared library.""