X window application icon

Here it is.
I took inspiration of other libraries for the setIcon implementation. Do they need credit? (mostly allegro)