fixed future handling for gcc 4.6