Refactor getNativesResourcesPathPart to use getLibName.