Removing unnecessary folders and put them into the lib folder