For the terrain shadows:
Make sure your terrain has vertex #1 in the upper left corner (check that in MED by selecting the the vertice...you'll see the number at the bottom task-bar from MED). If this isen't the case, mirror or rotate the terrain until you get it there (might need to convert the terrain to mdl...and convert it back to terrain). You will also have to mirror/rotate your shadowmap accordingly (before it's used to bake the object shadows in). Also make sure your terrain center is at origin 0,0,0. This problem can appear by importing terrains generated with other software than MED....depending on the software.

For the pan angle:
Simply uncheck the "random_pan" flag in the objects behaviour panel