Convert rest of the files to C99.
Merge pull request #25 from rui314/c99

Convert rest of the files to C99