add check for support of vnsprintf/C99 compiler to fix runtime bug