test build environment for arm-ndk, clean and some refactor