Updates project to be buildable with android-ndk-r8d.

Converts into lib-project.