Fix wrong extern declaration

It should in 'extern "C" {...}' scope.

It may fix #28 on GitHub.