Try to fix long-standing crash-on-resize in Linux.

It appear's SDL's SetVideoMode can cause repeat SDL_VIDEORESIZE message and shouldn't be called again.
Lazily fix static deinitialization fiasco
Silence voice complaint about missing cap
1024-sized terrain texture support