[SceneGraph] Fixed tests to build on non-c++11 compiler.