Fix compilations for macos mountain lion