clean up library references