fix libcore compile warning