Some links to give you some guidance:
http://stackoverflow.com/questions/708238/how-do-i-add-an-icon-to-a-mingw-gcc-compiled-executable
https://github.com/nim-lang/Nim/tree/devel/icons
https://github.com/nim-lang/Nim/blob/devel/koch.nim#L12-L16