I think lib/stp-jni/stp/STPJNI.c should be renamed to have a .cpp suffix, as it is really a C++ file.