Check for XMLWriter class

This is not installed by default in all cases and will break the DAV features of ownCloud. Lot's of reports such as https://github.com/owncloud/ios-issues/issues/167#issuecomment-63798507
Merge pull request #12321 from owncloud/checkForXMLWriter

Check for XMLWriter class