fixed compiler compatibility problem causing failed compilation on gcc 4.7