Add a callback error function.

Used, for now, only when printing a message related to the configuration
file. As, previously, output the path and the line number.
While at it, simplify configuration file parsing.

The fparseln(3) function already returns NULL on EOF. Check it and move
the ferror(3) call outside the loop.