integrating linux portability fixes to arby server