Make building of OpenGL tests and samples optional.