changing permissions on libs