add support of linux (not yet tested really). Fix compilation error