Changing libraries for static linkage