Some changes required to compile against the ndk. I'll add something to
the makefile and travisci later.