Make opengl.c handle movie rotations.

Signed-off-by: Felix Abecassis <felix.abecassis@gmail.com>
configure: fix GL detection on Windows (close #11062)