EGL: Properly set parent window.

In X with EGL and WX frontend enabled, running the emulator created
two windows. This was because the parent window was set incorrectly.
EGL: Fix android build broken by last commit
Increase save state version.
Videosoftware: Fix memory cleanup code.