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.
Merge pull request #184 from ermshiperete/BL-779

Fix wrong icon in Linux (BL-779)