evil bug: forgot to exit after version
add support for building the library