Support no opengl build