fixes for tests, check for unix presence in native