Updated fold/wrap flag handling to work with wxwidgets 2.8 (ref #305).