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