fix compilation when included with C++ code
Merge pull request #19 from boucman/master

fix compilation when included with C++ code