changes to osx native file dialog code for compat with 10.8 and 10.9