make Stage3D workaround optional