fix compilation on 10.7 and 10.8