Add extern "C" to ioapi_buf.h and ioapi_mem.h

This is needed if you are going to link a C compiled minizip
library with a C++ application.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>