So this is more for the aboveground/human forts after invaders have been taught how to use tunneling.
Basically what I am proposing here is enabling the use of soil as a very cheap (infinite supply), yet inefficient and even dangerous building material for large buildings.
Building with soil would require three things: A shovel, a wheelbarrow or other type cart and time. To begin construction one would firstly designate an area for collection (just like sand.) After this is done you can [d]esignate an empty tile to be made into either a soil ramp (one wheelbarrow load) or a wall (two loads). Then a dwarf with the appropriate labor enabled (dirt hauling?) will grab the necessary tools, head to the collection area to fill up his wheelbarrow and then dump it's load to the marked area.
Now while this method one could easily create large structures out of nothing - if it hadn't some major disadvantages. Firstly any invaders who have access to shovels could dig through any constructions made this way with ease, secondly the buildings have absolutely no architectual value, so while useful for accomodating common peasants or supplies whey wouldn't really be the winner's choise for a large fort.
The third, and as far as I am concerned, most Fun liability is moist. Specifically when a tile of dirt gets wet enough (and has at least one free tile without a ramp next to it), it has a chance to turn into 4/7 mud (more viscosic, un-drinkable and un-swimmable water that dries faster) and a ramp. Floor tiles over rooms could turn into 1/7 mud and unsupported ramps into 3/7 mud. To make the construction structurally secure a wall out of other materials would need to be added to the sides.
Most importantly, rain could also turn soil into mud when given enough time, slowly turning hastily built settlements into pools and hillside establishments into mudslides. This could pose a serious threat to some underground forts too if their entrances are dug too steeply into insecure land.
So this would restrict soil construction to very dry or cold biomes (africa-style dirt huts, anyone?) and to small mounds and temporary barricades elsewhere.
Lastly, shrubs and especially trees could keep the soil together during even a heavy rainfall, so slides would probably not happen instantly after embarking to a site, since the earth has enough roots and other material in it to keep it solid. However, when the inevitable deforestation occurs any steep hills would start to liquidify, flooding the below areas and contaminating the water there.