libexport.a: Reduce code duplication in client_init()