Fixing compile error on OS X 10.6.8