multiple fixes mostly related to macos/wx3.0