WIT fixes & maskededit fixes

The fixes in this pull request fix WIT completely and also fix wx.lib.masked package.