Fix C++ usage of sparkey library

Like the title says