Changes to allow compilation with pandoc 1.12.

TODO:  Better handling of images and other resources in
Docx, ODT, PDF exports.