You can do it very easily using IcoMaker. Just compose the ico as a GIF in any editor of your choice, save it. Start IcoMaker, go to "New Document", import your existing image with File->Include Image, then save.

That's it.