Fix C99-related compilation errors.

Fixed by fixing C-file syntax instead of fixing compiler options, since merely adding new compiler
options fixes the build, but produces new warnings.
Merge pull request #54 from josteink/develop

Fix C99-related compilation errors.