Prepare library for release