use C99 format macros and -std=gnu99