Add feature for static library generation.