Replace bfg_sprintf with safer bfg_snprintf
Bugfix: bfg_snprintf: Handle standard snprintf passthrough type-by-type since va_list cannot be used after passing
Use bfg_snprintf for logging macros
Implement bfg_mvwprintw to pass through bfg_snprintf
Use bfg_wprintw for runtime