Change library to static linking