Cross compile fixes

This series allows to cross-compile tcpdump for Android. Tested with Android 2.3.5. The last patch should be applied to the libpcap repository as well.