add --std=c99 to cflags

sync from gvalkov