wrapped the library in an 'extern "C" {}' to make it play nice with others.