Fix unused argument warning on osx