Flush TldLibraryWriter

The XMLStreamWriter in TldLibraryWriter needs to be flushed.
Otherwise, if the XMLOutputFactory produces buffering writers,  empty/partial files will be generated.
Merge pull request #3 from bfd/patch-1

Flush TldLibraryWriter before invoking buffer.toString()