Fixes `--library` option which fail to find classes attached to a specific library.