Fix linux build after forms work

Add files to cmake project, and fix broken nullptr to XMLDocument conversion