Fixed compilation errors of C++98 compatibilty