Add support for icons in the Mac backend

This is just an experiment hacked as offline-friendly entertainment while
traveling, and is as such untested and probably wrong.
Fix icon extraction in the Mac backend
Merge branch 'feature/mac-icons'