jni/europa: corrected C++ backward compatibility

Previously committed implementation works only with compilers
introducing new constructors to std::of stream.
This patch ensure that the code works also with pre C++11 std::ofstream
API