Allow to build with statick qtmozembed, and fix some variables check problems