added x86 target, fixed C++ compilation with latest NDK.