There's a Sketchup plugin I use on occasion for gears, I've never had an issue with it. Think it's called Involute gear.