Automatically generate library version