Fix a warning/error when building with Android-NDK r9 toolchain.

NDK r9 is a bit more strict when it comes to printf formatting (or lack
thereof).
Fixed warning for implicit declaration of memcpy on unix/gcc.