some 10.6 build fixes