fix OSX support