Include missing headers

stddef.h for size_t
time.h for struct timespec and time_t
stdbool.h for bool
stdint.h for int32_t