So, I was going to present my general solution here, but you seem to have found my post in the older thread from September of last year.
As far as tracking the surface, I'd go with that relative to the spelljammer, the surface is motionless except for the speed of the spelljammer itself when moving at tactical speed; if you fly up/down for a given spot on a planet, you don't have to worry about the rotation of the planet, or the motion of the planet in its orbit, or the like, you just stay in the same sport relative to the planet.
This comports to what people intuitively expect, and can be explained by the spelljammer automagically matching the reference frame of the planet's surface. Certainly, if the helm is capable of moving a ship 100 million miles/day in open space, it can, at least in principle, manage to keep up with planetary rotation and such; so if you're close enough to a massive object, the magic of the helm can just automatically do the position-matching as a safety feature.
(This implies that if you have a skilled wizard, he might actually try messing with the safety magic to extract more speed, with quite dangerous potential results. Maybe it works, maybe the gods intervene in the laws of magic to make it impossible because they don't want anyone hitting planets at 4 million mph, whatever.)