I had the same question in my mind when I read this post.
Im not sure about Viracocha, but extensive research on the legend of Quetzalcoatl, conducted by Mormon church member Brant Gardner, concluded there is no connection between Quetzalcoatl and the Book of Mormons account of Christ in the Americas.
These may be additions to the local legends added by the early Europeans?