fixed permissons
Removed unnecessary links and use NDK to build

It still requires libpcap, which can be found in
AOSP. AOSP libpcap should be built fine by NDK
without any modification.