fix compilation in 10.7