Build fix for macOS 10.12