Fixing library errors