@SGaist I installed it from source using QtCreator 3.5.1 and Qt 4.8.6 on my Ubuntu 14.04.3 LTS Virtual Machine. I re-run it and it's the same. How to include opengl module when doing ./configure step? Is it required or it is included by default?

Since you built it yourself and didn't had the OpenGL dev lib, it was built without. You have to build Qt again (from scratch with a new call to configure). While you're at it, you should consider using 4.8.7.