fix xcode compiling error and simplify android.mk