fixed a few things for OS X 10.7 Lion