osx compile fix (nw)
OSX fix (nw)