add check for support of vnsprintf/C99 compiler to fix runtime bug
(cherry picked from commit 6c2d5e1c8d1909fe5bc6da6c1dfd3a2fc867f6a1)