ported to lua 5.2 & window type added for desktop icons