Modified Unity's terrain shader to support up to 16 textures instead of just 8.
I am aware that solutions for this exist on the asset store, but none of them support ray tracing.
Thankfully, Unity 7 will ship with a brand new terrain system, which hopefully won't have such harsh limits anymore.