template.hpp.in: add #define workaround for 'class'
template.hpp.in: #include <xcb/xcb.h> without workarounds
CMakeLists: try to find and replace bad identifiers