Moved the 'extern "C"' before the class declaration.

This should fix the compile-time error on Ubuntu.