changed library generation from shared to static