Flatten lib file structure