Fix bug with viewport on Win32
Merge branch 'DAVA/development' + Win32-specific changes.