Qfs tools: implement workaround to compile with older gcc / stl.