Fix #91

Add extern "C" to avoid linker errors when used in Objective C++ file