Fixes for issues #42 and #43

This should fix the last issues remaining concerning wxAUiNotebook. It should now behaves as the original one.