add missing stuff in iostream
change numeric_limits from function to type