Created attachment 3553 adds .gitignore files
Created attachment 3554 first of two patches with the updated platform support This is the first of two patches. It has bugs, you must apply the second patch with this one.
Created attachment 3555 fixes some Cairo misuses in the previous patch apply with the previous patch
We're going to do all this when porting to gtk3.