Fix build on Apple OSX.