add support for cross platform integer types using c++11 cstdint