Some linux adaptation