fix build fox OSX platform