fix compilation when included with C++ code

C++ seems not to treat this partiticular syntax in the same way than C (even when extern "C" { is used)

since setting the const works for both case, might as well add it...