Fix warnings on 10.7