build system: automatically set c99 mode