fix advanced variables in ffmpeg cmake files
add support for static system GLEW to cmake