Enhanced _vprintf to support different flags and length modifiers