fix OSX compile