Fix build on older versions of gcc

Gcc 4.7 thinks there's a conflict with C99 stdint macros and C++, even with -std=c++11.