Fixed compilation issues with GCC 4.2