Fixes UnitTests in OSX target