enable -std=c99, works with GCC but needs verification with other compilers