wim.c: Cleanup