Use lambdas for PurplePluginProtocolInfo callbacks
- In send_typing, use an unsigned literal to have the correct return type inferred
- In chat_info, replace g_new0 with new since the former doesn't work outside of named functions