Fix build errors for Atom > 0.150.0

Ref atom/atom-shell#849