Split library and executable