From dynamic to static lib