Fixed build for Mac OS X 10.6