libexport.a: Refactor client_init()