some small linux compatability fixes