android ndk build files and fixes