minor changes for osx 10.6 compatibility