Fixed osx build