Use C99

Add include files.
Use -std=C99 to *.c files.