Fix coverity 1238723 and 1238718, missing break statements in switch()
Fix various coverity warnings about using endl without using the std namespace