[BUG] GCC 2.7 compatibility & GCC bug work-around