Resolve include order conflict. Solved by including some Qt libraries before includes of glx.h