More robust window creation.
Updated Linux build.