Add form files to cmake build
Fix gcc build - can't convert a nullptr to XMLDocument
Merge pull request #4 from JonnyH/master

Fix linux build after forms work