fixes for newer versions of wx (2.9)

* taken from later versions of treelistctrl than we're currently on...