Added a fix for some linux distributions.