Assign library types to modules