make it build and run correctly on linux as well