Split embeddedclient into static library