Hello,
maybe this is unrelated, but I had in the past similer issues.
The problem there was that 'bool' was declared in other header files. Some were protected with #ifndef, some not.
The issue was that depending on the include file order, this triggered compiler errors too, similar to this one.
I hunted the problem down looking at the compiler preprocessor output, and then properly and carefully change the order of included files.
Hope this helps,
BK