Updated OSX file dragging functions to avoid some thigns that were deprecated in 10.10