add support for library subdirectories