assert for fwrite return value
updated Android.mk, nacl Makefile and emscripten Makefile with KeyboardTest