Fix compiler warnings from OS X.