Reorganize lib files.