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

Change-Id: Ic8ad29b579d5c4ae40c4f3c99a404014281fee81