Fix a linker warning on macOS