Moved tools/ from mapcraftercore/ to src/.
Fixed some small issues with make runtests / make gen_texture_code.