Coverity fix for C++11