Wip ceph json

These fix a few compilation errors on different architectures.