I've added the rest of cabmame patches to that diff except the changeres one, I'm going to do that later but nice to test each in parts too since I can't compile the Windows side here (no native windows compiler), but should be right since Linux side is compiling fine (sound sync fix should work, only part really that could possibly have errors). So now the cleanstretch option, the soundsync option (only in windows), resolution patch and defaults patch from cabmame are in there.
Also a question, does cleanstretch not stretch the screen without hwstretch turned on? Is it good just to have cleanstretch on all the time then I guess. Just asking because in Linux there's unevenstretch which seems to do what hwstretch does in Windows, yet with cleanstretch it doesn't play well with unevenstretch and prevents the stretch from occurring. I'm thinking that cleanstretch then in Linux should always be on unless hwstretch is wanted, or unevenstretch as it seems to be in Linux.