Build Coin3D before OSG because OSG has plugin for Coin3D
Use Coin3D as Inventor library for OSG
Use different build directories for Qt with different OpenGL options.