Fixed linux specific errors