Fix weak linking OS version