Check compiler before including stdint.h

I would have used a config.h option, but if I remember we want to support compilation without config.h