Multiplatform base. Prepared to implement createWindow in Win32