Fixes invalid XHTML in documentation

doc/callbacks.html and doc/curlshareobject.html were not valid xhtml.

Thanks to Ivo Timmermans for the original report and patch to Ubuntu (LP: #364168)