Compile fixes with qt4 on examples