Add of linux compatibility

Not the best way, but it works.