Fixed crashes that occur because I was using the channel name after libpurple had freed it. It should now be more stable involving joining channels. Fixed build on Windows again.