Correct Mac build error in wxJSON
Improve dialog Z-order logic for Mac.