Don't redeclare K_PLUGIN_VERIFICATION_DATA in K_EXPORT_STATIC_PLUGIN.
Ugh - just hackishly load KFileModule directly, rather than trying to get all the plugin loader stuff working.
KFileDialog needs some of the xdg dirs defined, so hack them back in.
Revert dd5c077f09b7720a57f0ec93cceeae54770aa8bd - looks like using KFileDialog is a bit too ambitious right now, which is a bit sad when you think about it. I'll just use QDialog in Kate instead.