fix order of init
fix wx2.9 compile