Linux compatibility stuff

Signed-off-by: tore <tore.mueller@googlemail.com>