In your first diagram, maybe try 10.Kf1 because as you noticed it's not at all safe on d1.
In the 2nd diagram, I don't know what you mean compensation, black is down the exchange with nothing to show for it.
Black never plays g6 (unless you're facing a beginner).
Of course, if you're seeing f6, chances are you are playing a beginner, but it doesn't hurt to look at lines where black doens't immediatly kill himself.
I'm sure most players who play 1. E4 know that it's a bad idea for black to play f6. However, I've come across a few somewhat scary situations against this.
After seeing this, I wonder if 2...f6 is really a "losing" move for black. Not recommended, perhaps... but it appears a fairly strong counterattack can occur if they grab your rook. Obviously, the difference in that line is that black's biship is free, which can make a big difference, but can black gain an advantage in the main line?
What are your thoughts on these two games?