system/core: using equivalent code to fix build break for win host am: 1e61274532
am: 78d173ed25

Change-Id: I1b07f98c3e817b67567aacb2cd19ec2567f933e8