fix icu detector porting.

latest commit 6e122a1030
@yhfudev authored