licq: Don't assume fifo data has line break

If fifo got data without a line break at the end, fgets() would wait
forever without returning the main thread.
By using a buffer and finding the line breaks ourselves we don't risk
locking the main thread.