Add options to allow terrain window resizing

More work needs to be done in order to allow dynamic resizing, but this will at least allow terrain window size to be changed in the first place.

There's also a small vikey fix.