fix compilation osx