Fixed GL dependency issues for Qt