Fix socket_wrapper build for 3.0.x.