Depend on ANDROID_NDK env var instead of hard coding path to NDK
Fix compiler warning in release mode
Don't redirect shake output to errors file