Update alloc_sprintf to return length, and add fdprintf
Simplify IRC code via using fdprintf
Change name of strdup to avoid conflicts
Remove redundent #define
Change standard to be gnu99
Fix name collision with strcasecmp