add alert-after-compilation-finish when compile buffer is hidden

ganked from @purcell
https://github.com/purcell/emacs.d/commit/a114e1add426374819d0a43824b3d233622f9f6e