currently if -libs or lib come before -dbg then default_dbg will be faulty as it only looks at $pkgdir