Build system modifications to build the ctf-writer API

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Add CTF Writer tests

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>