Hi all,

This patch ensures that couchdb can be build on Solaris which does not have GNU sed available. Solaris sed requires an end of line character. Adding a new line to the output does not affect other operating systems so I've added this for every platform (except Windows, which is in a different ifdef block.

Patch is against HEAD.

Thanks,
Gavin