Enable global constructors and make the color buffer surface a global instead of local.