fix some cppcheck warnings
Revert "add option WX_HELPER to enable wx helper functions"

This reverts commit a1a87207931e3acd8bfe71599c617d0cf626d02b.