Safe integer utilities for C++11