Hi everyone, I have great news.
Apparently, I managed to compile zdb and ztest ;)
After fixing a few bugs, I also managed to run ztest a few times for 5 minutes with no problems (there are still bugs, however).
Once I manage to fix the remaining bugs (tomorrow or the day after, I hope), I'm going to upload the source code and give instructions for whoever wants to help testing.
Stay tuned :)