add missing includes <string> and <limits>