Fix test compilation on linux