Add support for changed rados_write API.

Seems from version 0.68 to 0.69 the rados_write
function all of a sudden gives back 0 when succeeded and
no longer the actual bytes it wrote. As we also want to
support the old API it now checks the LIBRADOS_VERSION_CODE