[api] fix indenting the xml results of searches

Also, speed it up. Before, it rendered xml, to parse it, to render it again.
[api] do not crash on missing build time
[backend] allow to build 32bit big endian ppc on 64bit little endian host