fixed #error C++ headers must be first rather C

fixed #error qmetatype.h must be included before any header file that defines Bool