Actually including stdlib now.

Goodbye weird linking ambiguity
Removed purple_stringref in favor of g_char.

Does the same, has a smaller footprint.