android ndk build files and fixes

Someone should do this to make things kept together.