fix lib-static and lib-dynamic