SERVER-11135 Fix C++11 build break and questionable type narrowing.