Fix wrong icon in Linux (BL-779)

In release builds we occasionally tried to set the icon before
the handle was created. Due to a mono bug this didn't work.
This change sets the icon after the handle got created.
Should we be consistent and change this to BL-779 also?