Add extern "C" to compile with C++ compiler.
Merge pull request #2 from chrisdembia/externc

Add extern "C" to compile with C++ compiler.