Fixed compilation issues on GCC 4.6