add extern C declaration
Merge pull request #14 from ideal/master

add extern "C"