Fix build on non-mac platforms