fixed some permissions issues on libs