fix an issue when building on the platform