Return non-zero if ndk build fails.