This also refines the build process for the ext_server build.
This switches darwin to dynamic loading, and refactors the code now that no static linking of the library is used on any platform