Convert more files to C99.
Merge pull request #24 from rui314/c99

Convert more files to C99