fix setup on OS X and homebrew

use the headers info that can be found in "qmake -query".Since Qt has a headers variable, there is no reason for a work-around.