Fixed a few bugs found in wxGTK (Linux) testing.