Fix OSX build about unused functions warning