final linux port, but still warnings