httpserver: fixed shared_from_this() base class cast