xd_doc: Fix wrong close function (close=>fclose)

'close' works with file descriptors (unsigned int), but we're using
file handles (FILE*)
test/simple: Test xd_load/free with xd_docs
xd_doc: Add include guards
xmldiver.h: Add include guards
xd_doc: Include xmldiver header

For future structs and related API