build: fixed a warning on OS X.