bracket more c99 stuff  out with #if __STDC_VERSION__ >= 199901L