Fix build errors on newer version of SDK
Fixed display sometimes starting on HDMI although default was specified
Explicitly request depth buffer
Check if view is in list before trying to remove it