Fixed compilation problems with old compilers