Fix C++ usage of sparkey library