Fixed warnings when building under OSX.