build fixes for Qt's MOC and certain versions of Boost.