wx-3.0 fixes and fix capture problem