update permission of lib files