Fix build and tests on non-Linux (Hurd)