Linux fixes

little fixes, make the test run on linux