Fix linking problem when built with -no-opengl

When -no-opengl was used then it was not automatically pulling in the
needed Windows libraries as it was not loading opengl.prf to get them
from.

Change-Id: Ic00717b2327a1f7cf05f55bcde7a7308e36c19e9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I77b03ce6926549bb5603364f64fd4eb07f8906bf