Added extern "C" to headers.

Maybe this is correct.