Set compilation-mode in *Gofmt Errors* window before display-buffer

Set compilation mode before calling display-buffer because
display-buffer does not select the window, which can cause that the mode
is selected in the wrong buffer (i.e. when using popwin.el).