Remove ltcg from static libs.
Disable resource compilation for static libs.