GCC build error with debug.hpp