fixed C code to build against the bionic libc
added generated files
created the Android.mk makefile