Fixed 'set icon'

It was breaking depending on the system's endianess.

Also, modified the makefile to hide the terminal when building a release
for windows.