Fixed crash when GetView() called before any view is created

also got rid of compiler warning from SDLSys.h using putenv on a string