avoid compiler warning on OS X