For the shrunken boulders, a permanent wind wall would do. Also discourages small flying creatures, small projectiles (arrows), etc.
You might also want to check out Stronghold Builder's Guidebook. It was released in 3.0 but some of the material there is easily adaptable (and has some tips)...