Fix json rpc: export the necessary classes.