Fixed problems with linux support.