Fixed Linux related issues.