mac: Fix app.dock.show/hide, close #520.
Upgrade apm to 0.84.