st/nir: use asprintf() wrapper to fix MSVC issues