cmake: bugfix: Should be #ifdef HAVE_GL not #if HAVE_GL