cross platform support

Signed-off-by: Christopher Ewest <christookar@web.de>