Compile fixes for OSX 10.0