Use -std=c99 flag for gcc.
Include stdint.h for gcc.