Fix build on Darwin