Fix an error Bad address family on Android 2.2.