fix unitests under osx