Fixed compilation crashes under g++ 4.8