I tried building with NDK r8d today and something in the toolchain seems to be a lot pickier. With these fixes I was able to build.
Oh my, thanks for this. lgtm