When using the library in C++, only the printf.h definitions need to be surrounded by extern "C" (see also this SO question). Apparently, some compilers (e.g. clang on Mac) seem to have trouble with definitions surrounded by it. So - let's remove it.