Fix OS X build error due to warning.