Fixed GCC 4.7, 4.8 compile error