This part is incorrect and will break non-C++11 compilers. Should be something like
```
#ifdef __cplusplus
#ifdef _LIBCPP_VERSION
#  include <cinttypes>
#else
#  include <tr1/cinttypes>
#endif
... [the rest]
```

Also, has this issue been reported upstream?