some compiling adjustments for 10.6