Fix warning on OS X