Handle <cstdint> hack cleaner

This one does require C99-compliant compiler, so it's probably as portable as the `<cstdlib>` assumption but it should work cleanly for all gcc versions.