vo_opengl_old: add missing include statement

<ctype.h> is needed at least for isalnum(). Most time this worked,
because some ffmpeg or Libav versions recursively include this header
from libavutil/common.h. Fix it so it always works.
Silence two compiler warnings

Both should be harmless.