Fixed OSX warnings.