fix the osgi tests by improving the test whether posix uses native or not