Add some linux compatibility stuff. WIP...