Fixed compile-time errors on Mac OS X.