Position __STDC_FORMAT_MACROS correctly

__STDC_FORMAT_MACROS is only used when including <inttypes.h>, not for
<errno.h>.
Use correct C99 value for __STDC_VERSION__