Fix permissions of installed libraries